// 这里只是注册接口
const Router = require('koa-router')
const {
    operate,
    menuList
} = require('../controller/menu.controller')

const {
    verifyOperate
} = require('../middleware/menu.middleware')

const menuRouter = new Router({prefix: '/menu'})

// 新增或编辑
menuRouter.post('/operate', verifyOperate, operate)

// 菜单列表
menuRouter.post('/list', menuList)

module.exports = menuRouter
